package com.zhb.cloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zhb.cloud.core.JsonReturn;
import com.zhb.cloud.iservice.IUserService;

@RestController
public class UserController {
	@Autowired
	private IUserService iUserService;

	@RequestMapping("findByUserName")
	public JsonReturn findByUserName(String userName) {
		try {
			return iUserService.findByUserName(userName);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

}
